import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { OverviewComponent } from "./overview/overview.component";
import { WaterTakesReportComponent } from "./water-takes-report/water-takes-report.component";
import { MngWaterReportComponent } from "./mng-water-report/mng-water-report.component";
import { MonthlyReportComponent } from "./monthly-report/monthly-report/monthly-report.component";
import { DataPublishComponent } from "./data-publish/data-publish.component";
import { DailyDispatchComponent } from './daily-dispatch/daily-dispatch.component';
import { DutyRecordsComponent } from './duty-records/duty-records.component';


const routes: Routes = [
    {
        path: '', children: [
            { path: 'overview', component: OverviewComponent },
            { path: 'water-takes', component: WaterTakesReportComponent },
            { path: 'water-report', component: MngWaterReportComponent },
            { path: 'monthly-report', component: MonthlyReportComponent },
            { path: 'publish', component: DataPublishComponent },
            { path: 'daily-dispatch',  component: DailyDispatchComponent },
            { path: 'duty-records',  component: DutyRecordsComponent }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class DataReportRoutingModule {
}
